//
//  LTView.m
//  PhoenixNews
//
//  Created by dllo on 15/10/26.
//  Copyright (c) 2015年 Dior_3g. All rights reserved.
//

#import "LTView.h"

@interface LTView()<UITextFieldDelegate>

@end

@implementation LTView




- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}


- (void)create {
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 40)];
    [self addSubview:self.label];
    self.label.layer.cornerRadius = 10;
    self.label.backgroundColor = [UIColor whiteColor];
    self.label.layer.masksToBounds = YES;
    self.label.textAlignment = 1;
    
    self.textField = [[UITextField alloc] initWithFrame:CGRectMake(110, 0, 200, 40)];
    [self addSubview:self.textField];
    self.textField.layer.masksToBounds = YES;
    self.textField.layer.cornerRadius = 10;
    self.textField.backgroundColor = [UIColor whiteColor];
    
    self.textField.delegate = self;
}


- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    [self.textField resignFirstResponder];
    return  YES;
}






@end
